package com.example.zcapi;

import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.os.Bundle;
import android.text.Editable;
import android.text.TextWatcher;
import android.view.View;
import android.widget.EditText;

class dialog extends AlertDialog implements DialogInterface.OnClickListener {
    private EditText old_passwork,new_password,confirm_password;
    protected dialog(Context context) {
        super(context);
    }
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        final View mView=getLayoutInflater().inflate(R.layout.change_password,null);
        setView(mView);
        setInverseBackgroundForced(true);
        old_passwork = (EditText) mView.findViewById(R.id.old_password);
        new_password = (EditText) mView.findViewById(R.id.new_password);
        confirm_password = (EditText) mView.findViewById(R.id.confirm_password);
        setButton("确定", (OnClickListener) this);

        super.onCreate(savedInstanceState);
    }
    @Override
    public void onStart() {
        super.onStart();
        ChangeDialog();
    }
    public void ChangeDialog() {
        String old = old_passwork.getText().toString();
        String new_pass = new_password.getText().toString();
        String confirm =confirm_password.getText().toString();

    }


    @Override
    public void onClick(DialogInterface dialog, int which) {

    }
}
